import http from '@/utils/http.js'

// 获取分类列表
export function getCategoryApi() {
  return http.get('/home/category/head')
}

// 获取轮播图
export function getBanner(distributionSite = 1) {
  return http.get(`/home/banner?distributionSite=${distributionSite}`)
}

// 获取新鲜好物
export const findNewAPI = () => {
  return http({
    url: '/home/new'
  })
}

// 人气推荐
export const getHotAPI = () => {
  return http.get('home/hot')
}

// 获取产品列表
export const getGoodsAPI = () => {
  return http({
    url: '/home/goods'
  })
}
